#ifndef USERMANAGERVIEW_H
#define USERMANAGERVIEW_H

#include <QWidget>
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QSqlTableModel>
#include <QTextCodec>
#include "CustomWgt/TableWgt.h"
#include "AddUserDialog.h"
#include "ModifiUserPasswd.h"
#include <QTableView>
#include <QHeaderView>
#include <QObject>
#include "Settings/Model/MySqlTableModel.h"

namespace Ui {
class UserManagerView;
}

class UserManagerView : public QWidget
{
    Q_OBJECT
    
public:
    explicit UserManagerView(QWidget *parent = 0);
    ~UserManagerView();

public slots:
    void updateTableBtn();
private slots:

    void on_Btn_new_clicked();
    void on_Btn_amendpassword_clicked();
    void on_Btn_delete_clicked();


private:
    void InitTable();
    
private:
    Ui::UserManagerView *ui;
    QTextCodec *tc;
    TableWgt *userTableWgt;
    MySqlTableModel* model;
};

#endif // USERMANAGERVIEW_H
